package com.java.zhuiyun.api.carousel_pc.service.impl;

import com.java.zhuiyun.api.carousel_pc.mapper.CarouselPcMapper;
import com.java.zhuiyun.api.carousel_pc.service.CarouselPcService;
import com.java.zhuiyun.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName CarouselServiceImpl
 * @Description TODO
 * @Author wuwan
 * @Date 2023/8/15 16:19
 **/
@Service
public class CarouselPcServiceImpl implements CarouselPcService {

    @Autowired
    private CarouselPcMapper carouselMapper;
    /*
    * @Author wuwan
    * @Description todo 前台轮播图信息展示
    * @Date 2023/8/21 9:22
    * @Return
    * @param null
    */
    @Override
    public CommonResult getCarousels() {
        return CommonResult.ok(carouselMapper.getCarousels());
    }

}
